package com.xxx.oauth.server.service;

import java.util.List;

import com.xxx.oauth.server.entity.User;

/**
 * user service
 */
public interface UserService {

	public User createUser(User user);

	public User updateUser(User user);

	public void deleteUser(Long userId);

	public void changePassword(Long userId, String newPassword);

	User findOne(Long userId);

	List<User> findAll();

	public User findByUsername(String username);

}
